package com.reesechou.dao;

import com.reesechou.javabean.Article;
import com.reesechou.util.DbUtil;
import org.apache.commons.dbutils.DbUtils;
import org.apache.commons.dbutils.QueryRunner;

import java.util.List;

/**
 * Created by 小星打屁屁 on 2015/4/7.
 * contact me ==>243709758@qq.com
 */
public interface ArticleDao {
    public int insert(Article entity);
    public boolean update(Article entity);
    public boolean delete(Article entity);
    public boolean deleteAllPage();
    public Article findById(int id);
    public List<Article> findPage();
    public List<Article> findAllArticle();
    public List<Article> findNavMenuItem();
    public List<Integer> findAllArticleId();
    public List<Article> findNewestArticle();
    public List<Article> findByFuzzyName(String key);
}
